package com.demo.shardingsphere.user.config.rule;

import java.sql.SQLException;
import java.util.List;

public interface IShardingService {
      /**
       * 获取数据库
       * @param id
       * @return
       * @throws SQLException
       */
      String getDb(Long id) throws SQLException;

      /**
       * 获取表
       * @param id
       * @return
       * @throws SQLException
       */
      String getTable(Long id) throws SQLException;

      /**
       * 获取数据库配置列表
       * @return
       * @throws SQLException
       */
      List<DbConfig> getDbConfigList() throws SQLException;
}
